#include "main.h"
#include "..//GKoSonTools/TW_LED/ledtw.h"

twinkleType basetw;



void ledon(void) {	HAL_GPIO_WritePin(LED_GPIO_Port, LED_Pin,GPIO_PIN_SET);}
void ledoff(void){	HAL_GPIO_WritePin(LED_GPIO_Port, LED_Pin,GPIO_PIN_RESET);}

void TWLED_init(void)
{
	basetw.loop=twinkle_timer_isr;
	basetw.init=twinkle_set;//这里 禁止参数！！(&basetw,able,num,OpenT,CoseT,fo,fc);
}

void TWLED_write(uint8_t num)
{
	basetw.init(&basetw,1,num,50,100,ledon,ledoff);
}




TWLEDType    TWLED=
{
    .write = TWLED_write,
};
